<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; charset=UTF-8"/>
<style type="text/css">
a:link {
	color: #000000;
	text-decoration: none;
}

a:visited {
	text-decoration: none;
	color: #000000;
}

a:hover {
	text-decoration: none;
	color: #ff0000;
}

a:active {
	text-decoration: none;
	color: #ff0000;
}
</style>
<SCRIPT type="text/javascript">
function ev_resetpage(){
	var __pidx = document.getElementById("__footerjsp_pageidx"); 
	var __pttl = document.getElementById("__footerjsp_pagetotal");

	__pidx.value = 0;
	__pttl.value = 0;
}

function ev_goto(pageIdx){
	var __pidx = document.getElementById("__footerjsp_pageidx"); 
	var __pttl = document.getElementById("__footerjsp_pagetotal");
	var __pno  = document.getElementById("__footerjsp_pageno");
	var __switch = document.getElementById("__footerjsp_switching");
	__switch.value = true;
	if("first"==pageIdx){
		if(parseInt(__pidx.value) > 1){
			__pidx.value = 0;
			document.forms[0].submit();
		}
	}
	
	if("prior" == pageIdx){
		if (parseInt(__pidx.value) > 1){
			__pidx.value = parseInt(__pidx.value) - 1;
			document.forms[0].submit();
		}
	}
	
	if("next" == pageIdx){
		if (parseInt(__pidx.value)<parseInt(__pttl.value)){
			__pidx.value = parseInt(__pidx.value) + 1;
			document.forms[0].submit();
		}
	}
	
	if("last" == pageIdx){
		if(parseInt(__pidx.value) < parseInt(__pttl.value)){
			__pidx.value = __pttl.value;
			document.forms[0].submit();
		}
	}
	
	if("pageNo" == pageIdx){
		if(__pno.value == null || __pno.value == "") __pno.value = "1";
		__pidx.value = __pno.value;
		if(parseInt(__pno.value) > parseInt(__pttl.value)){
			__pidx.value = __pttl.value;
		}
		if(parseInt(__pno.value) < 0){
			__pidx.value = 0;
		}
		document.forms[0].submit();
	}
}

function ev_changepageSize(){
	var __pidx = document.getElementById("__footerjsp_pageidx"); 
	var __pttl = document.getElementById("__footerjsp_pagetotal");
	__pidx.value = 0;
	document.forms[0].submit();
}
</SCRIPT>
<style type="text/css">
.input_page {
	font-size: 12px;
	background-position: right center;
	background-color: #D7EDF0;
	padding-right: 10px;
	height:22px;
	margin-top: 3px;
	margin-bottom: 3px;
}

.input_input {
	width:30px;
	height: 15px;
}

.input_user{
	clear:both;
	color:#666666;
	font-size:12px;
	text-decoration:none;
}

.input_user a{
	font-size:12px;
	color:#000000;
}

.input_user a:hover{
	font-size:12px;
	color:#ff0000;
	text-decoration:none;
	border-bottom:solid 1px #c56109;
}
</style>
<body>
<div align="right" class="input_page">
	<s:hidden name="pageInfo.switchingPage" id="__footerjsp_switching" value="false"/>
    <s:hidden name="pageInfo.pageIndex" id="__footerjsp_pageidx"  />
    <s:hidden name="pageInfo.pageTotal" id="__footerjsp_pagetotal" />
    <s:hidden name="pageInfo.recordCount" id="__footerjsp_recordcount" />
    
      共<s:property value="pageInfo.recordCount"/>行&nbsp;
      第<s:label name="pageInfo.pageIndex"/>页&nbsp;
      共<s:label name="pageInfo.pageTotal"/>页&nbsp;
      <s:select list="#{10:'10',15:'15',20:'20',30:'30',50:'50',100:'100',-2:'全部'}" name="pageInfo.pageSize" onchange="ev_changepageSize()" id="selpagesize"/>
      <span class="input_user"><a href="#" onClick="ev_goto('first')">首页</a>&nbsp;  
      <a href="#" onClick="ev_goto('prior')">上一页</a>&nbsp;  
      <a href="#" onClick="ev_goto('next')" >下一页</a>&nbsp;  
      <a href="#" onClick="ev_goto('last')" >尾页</a></span>&nbsp;
      转到
  
      <input type="text" class="input_input" id="__footerjsp_pageno" size="5" maxlength="5">
页&nbsp;  
	<a href="#" onClick="ev_goto('pageNo')"><img src="${pageContext.request.contextPath}/images/zhuang.gif" width="14" height="14" hspace="0" vspace="0" align="absmiddle" class="input_w" border="0"></a></div>
</body>
</html>